package com.lsl.domain;

/**员工类
 * @author lishuailong
 * @create 2020-06-19 16:12
 */
public class Employee {
    private int id;
    private String name;
    /**
     * 年龄
     */
    private int age;
    /**
     * 薪资
     */
    private double  salary;

    public Employee(int id, String name, int age, double  salary) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public Employee() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double  getSalary() {
        return salary;
    }

    public void setSalary(double  salary) {
        this.salary = salary;
    }
    protected String getDetails() {
        return id + "\t" + name + "\t" + age+ "\t" +salary;
    }

    @Override
    public String toString() {
        return getDetails();
    }
}
